﻿using System.Collections.Generic;
using Mono.Cecil;

namespace MethodCaching.Weaving
{
    /// <summary>
    /// Represents a class that is capable of selecting 
    /// a set of types from a module definition.
    /// </summary>
    public interface ITypeSelector
    {
        /// <summary>
        /// Returns a list of types from the target <paramref name="moduleDefinition"/>. 
        /// </summary>
        /// <param name="moduleDefinition">The module that contains the target types.</param>
        /// <returns>The list of selected types.</returns>
        IEnumerable<TypeDefinition> Select(ModuleDefinition moduleDefinition);
    }
}
